package com.zh.web.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;

/**
 * workInfo状态枚举类
 */
@Getter
@ApiModel("workInfo状态枚举")
public enum State {

    CANCEL((short) 0, "取消"),
    CONFIRM((short) 1, "确认");
    @JsonValue
    @EnumValue
    @ApiModelProperty(value = "状态码", example = "0 1 3")
    private final Short code;
    private final String desc;

    State(Short code, String desc) {
        this.code = code;
        this.desc = desc;
    }
}
